﻿// ===============================================================================
// IRouteHandler.cs
// EOS Web Framework
// ===============================================================================
// Copyright (c) EOS Development Group. All rights reserved.
// ===============================================================================

namespace EOS.Framework.Contracts.Web.Routing
{
    using System.Web;

    /// <summary>
    /// Is called, whenever the route, where this handler is assigned to is the route
    /// who matchs to the url and who matchs best.
    /// </summary>
    public interface IRouteHandler
    {
        /// <summary>
        /// Gets the HTTP handler, who should handle this route.
        /// </summary>
        /// <param name="route">The route.</param>
        /// <returns>The HTTP handler, who should handle this route.</returns>
        IHttpHandler GetHttpHandler(MatchingRoute route);
    }
}
